package gui.archerDbEditor;


import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

public class ArcherDbEditorActionListener implements ActionListener {
	private final ArcherDbEditor window;

	public ArcherDbEditorActionListener(ArcherDbEditor archerDbEditor) {
		this.window = archerDbEditor;
	}

	@Override
	public void actionPerformed(ActionEvent event) {
		if (event.getSource() == this.window.getSaveButton()) {
			this.window.controller.saveButtonAction();
		} else if (event.getSource() == this.window.getCloseButton()) {
			ArcherDbEditor.getInstance().dispose();
		} else if (event.getSource() == this.window.getCloseButton()) {

		}
	}

}
